var db = require("google/appengine/ext/db");
var Tier = require('content/tier').Tier;
var Response = require('nitro/response').Response;
var Logging = require('google/appengine/logging');

exports.GET = function(req) {
  var tier = new Tier({
    // tierID: 'check',
    name: 'Normal Icecrown',
    keyName: 'checkReq'
  });
  
  Logging.info('Putting Tier.');
  tier.put();
  
  var testTier = Tier.getByKeyName('checkReq');
  
  var response = Response.ok();
  response.body.push(JSON.stringify(testTier));
  
  return response;
};